package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.BaseOrderConfigDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 *  业务参数配置Jpa仓库[订单积分抵扣][满额包邮]
 * @author ds
 * @date 2022/2/21
 * @version 2.0.0
 */
@Repository
public interface BaseOrderConfigRepository extends JpaRepository<BaseOrderConfigDO, Long>, JpaSpecificationExecutor<BaseOrderConfigDO> {
    BaseOrderConfigDO findByTypeAndMemberIdAndMemberRoleId(Integer type, Long memberId,Long memberRoleId);
}
